package com.shop.api.service.Impl;

import com.shop.api.entity.User;
import com.shop.api.service.UserService;
import com.shop.persist.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(User user) {
        return userMapper.selectUser(user);
    }
}
